# -*- coding: utf-8 -*-
# @Time    : 2022/5/16 22:39
# @Author  : 我还能卷
# @FileName: test1.py
# @Software: PyCharm

import unittest
from login import login


class TestLogin(unittest.TestCase):
    def testcase1(self):
        username, password = None, ''
        actual = login(username, password)
        expect = {"code": "300", "msg": "用户名或密码错误"}
        self.assertEqual(actual, expect)
